package com.tywj.panda.home.details

import com.tywj.panda.customer.common.view.dialog.BottomDialog
import com.tywj.panda.home.R
import com.tywj.lib.core.common.extension.onClick
import kotlinx.android.synthetic.main.home_share_line.*

class ShareDialog : BottomDialog() {

    companion object {
        const val TAG = "ShareDialog"
    }

    override fun getLayoutID(): Int = R.layout.home_share_line

    override fun initListener() {
        super.initListener()

        tvShareWeChatFriends.onClick {

            shortToast("微信分享")
            dismiss()
        }

        tvShareWeChatCircle.onClick {

            shortToast("微信分享朋友圈")
            dismiss()
        }
        tvCancel.onClick {

            dismiss()
        }
    }
}